<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Autenticar Usuario',
);
?>

<h2>Autenticar Usuario</h2>

<p>Por favor complete el siguiente formulario con sus datos de acceso:</p>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Los campos con <span class="required">*</span> son requeridos.</p>

	<div style="width: 100%; border: solid transparent;align:center;">
		<div class="cuadroLogo"></br>
			<table style="width: 300px;margin:0 auto; border: solid transparent;">
				<tr>
					<td class="campoErr"><?php echo $form->labelEx($model,'username'); ?></td>
					<td class="campoErr"><?php echo $form->textField($model,'username'); ?></td>
				</tr>
				<tr>
					<td class="campoErr"></td>
					<td class="campoErr"><?php echo $form->error($model,'username'); ?></td>
				</tr>
				<tr>
					<td class="campoErr"><?php echo $form->labelEx($model,'password'); ?></td>
					<td class="campoErr"><?php echo $form->passwordField($model,'password'); ?></td>
				</tr>
				<tr>
					<td class="campoErr"></td>
					<td class="campoErr"><?php echo $form->error($model,'password'); ?></td>
				</tr>
				<tr>
					<td class="campoErr"></td>
					<td class="campoErr">
						<div class="row rememberMe">
							<?php echo $form->checkBox($model,'rememberMe'); ?>
							<?php echo $form->label($model,'rememberMe'); ?>
							<?php echo $form->error($model,'rememberMe'); ?>
						</div>
					</td>
				</tr>
				<tr>
					<td class="campoErr"></td>
					<td class="campoErr">
						<div class="row buttons">
							<?php echo CHtml::submitButton('Ingresar'); ?>
						</div>
					</td>
				</tr>
			</table>
		</div>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
